#ifndef COMMAND_H
#define COMMAND_H
#include "user.h"
#include "trans.h"
#include <myHeader.h>
#include "virDir.h"
#include "threadPool.h"
#include "MySQL.h"
typedef enum{
    CD=1,
    LS,
    PWD,
    GETS,
    PUTS,
    REMOVE,
    RMDIR,
    MKDIR,
    TREE,
    REG1,
    REG2,
    LOG1,
    LOG2,
    TOK,
    ERROR
}commandType;

typedef enum{
    SELECT,
    INSERT,
    UPDATE
}sqlType;
typedef struct train_s{
    commandType command;
    int argvSize;
    char argv[256];
}train_t;
 
int MySQLSentence(sqlType type,MYSQL *mysql,char *argv1,char *argv2,char *argv3);
int commandExcute(usrInfo_t *pUsrInfo,train_t *train,threadPool_t *pThreadPool,MYSQL *mysql);
#endif
